home *** CD-ROM | disk | FTP | other *** search
- VERSION 5.00
- Object = "{D959C709-8613-11D1-9840-002078110E7D}#1.0#0"; "as97Popup.ocx"
- Begin VB.Form as97PopupSample
- BorderStyle = 1 'Fixed Single
- Caption = "Popup Sample"
- ClientHeight = 3360
- ClientLeft = 5850
- ClientTop = 4020
- ClientWidth = 5790
- LinkTopic = "Form1"
- MaxButton = 0 'False
- MinButton = 0 'False
- Picture = "as97PopupSample.frx":0000
- ScaleHeight = 3360
- ScaleWidth = 5790
- Begin as97Popup.asPopup cmdMicrosoft
- Height = 915
- Left = 120
- Top = 120
- Width = 1155
- _ExtentX = 2037
- _ExtentY = 1614
- CustomPicture = "as97PopupSample.frx":40E0
- MouseOverPicture= "as97PopupSample.frx":43FA
- Caption = "Microsoft"
- BeginProperty Font {0BE35203-8F91-11CE-9DE3-00AA004BB851}
- Name = "MS Sans Serif"
- Size = 8.25
- Charset = 0
- Weight = 700
- Underline = 0 'False
- Italic = 0 'False
- Strikethrough = 0 'False
- EndProperty
- ForeColor = 16777215
- Layout = 3
- HyperLink = "http://www.microsoft.com"
- ScaleWidth = 77
- ScaleMode = 0
- ScaleHeight = 61
- BackStyle = 0
- End
- Begin as97Popup.asPopup cmdExit
- Height = 795
- Left = 4800
- Top = 2460
- Width = 915
- _ExtentX = 1614
- _ExtentY = 1402
- BackPicture = "as97PopupSample.frx":4714
- CustomPicture = "as97PopupSample.frx":AF66
- MouseOverPicture= "as97PopupSample.frx":B280
- Caption = "Exit"
- BeginProperty Font {0BE35203-8F91-11CE-9DE3-00AA004BB851}
- Name = "MS Sans Serif"
- Size = 8.25
- Charset = 0
- Weight = 400
- Underline = 0 'False
- Italic = 0 'False
- Strikethrough = 0 'False
- EndProperty
- ForeColor = 0
- CustomHeight = 16
- CustomWidth = 16
- Layout = 3
- ScaleWidth = 61
- ScaleMode = 0
- ScaleHeight = 53
- End
- Begin as97Popup.asPopup asPopup1
- Height = 495
- Left = 120
- Top = 2580
- Width = 1335
- _ExtentX = 2355
- _ExtentY = 873
- BackPicture = "as97PopupSample.frx":B59A
- Caption = ""
- BeginProperty Font {0BE35203-8F91-11CE-9DE3-00AA004BB851}
- Name = "MS Sans Serif"
- Size = 8.25
- Charset = 0
- Weight = 400
- Underline = 0 'False
- Italic = 0 'False
- Strikethrough = 0 'False
- EndProperty
- UseFrame = 0 'False
- HyperLink = "mailto:exorcyze@corlabs.com"
- ScaleWidth = 89
- ScaleMode = 0
- ScaleHeight = 33
- Display = 2
- End
- Begin as97Popup.asPopup cmdHyperLink
- Height = 315
- Left = 1740
- Top = 2640
- Width = 2895
- _ExtentX = 5106
- _ExtentY = 556
- CustomPicture = "as97PopupSample.frx":C61D
- MouseOverPicture= "as97PopupSample.frx":C937
- Caption = "Goto Aspire Home Page"
- BeginProperty Font {0BE35203-8F91-11CE-9DE3-00AA004BB851}
- Name = "MS Sans Serif"
- Size = 9.75
- Charset = 0
- Weight = 400
- Underline = 0 'False
- Italic = 0 'False
- Strikethrough = 0 'False
- EndProperty
- ForeColor = 12582912
- UseFrame = 0 'False
- MouseOverColor = 16711680
- MouseDownColor = 16711680
- HyperLink = "http://members.tripod.com/~Aspiration"
- ScaleWidth = 193
- ScaleMode = 0
- ScaleHeight = 21
- BackStyle = 0
- End
- Attribute VB_Name = "as97PopupSample"
- Attribute VB_GlobalNameSpace = False
- Attribute VB_Creatable = False
- Attribute VB_PredeclaredId = True
- Attribute VB_Exposed = False
- Option Explicit
- Private Sub asPopup1_Click(Cancel As Boolean)
- Dim ret As Long
- 'you can use the cancel variable to
- 'cancel the firing of the HyperLink
- ret = MsgBox("Are you sure you want to mail us?", vbYesNo + vbQuestion, "E-mail Aspire")
- If ret = vbNo Then Cancel = True
- End Sub
- Private Sub cmdExit_Click(Cancel As Boolean)
- Unload Me
- End Sub
- Private Sub cmdHyperLink_MouseEnter()
- 'use the mouseenter / mouseexit events
- 'to make custom adjustments of the button's display
- cmdHyperLink.Font.Underline = True
- End Sub
- Private Sub cmdHyperLink_MouseExit()
- 'use the mouseenter / mouseexit events
- 'to make custom adjustments of the button's display
- cmdHyperLink.Font.Underline = False
- End Sub
- Private Sub cmdMicrosoft_Click(Cancel As Boolean)
- End Sub
- Private Sub Form_MouseMove(Button As Integer, Shift As Integer, X As Single, Y As Single)
- 'these routines garantee the full transparency
- 'of these two popup buttons
- Call cmdHyperLink.ParentMouseMove(Button, Shift, X, Y)
- Call cmdMicrosoft.ParentMouseMove(Button, Shift, X, Y)
- End Sub
-